//
//  WorksListTableViewCell.m
//  MyMusic
//
//  Created by mac on 2019/4/13.
//  Copyright © 2019 YangYang. All rights reserved.
//

#import "WorksListTableViewCell.h"

@interface WorksListTableViewCell ()

@property (nonatomic, strong) UILabel *worksNameView;

@end

@implementation WorksListTableViewCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        _worksNameView = [[UILabel alloc] init];
        [self.contentView addSubview:_worksNameView];
        _worksNameView.textColor = [UIColor blackColor];
        _worksNameView.font = [UIFont systemFontOfSize:15];
        [_worksNameView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.mas_equalTo(self.contentView.mas_left).mas_offset(20);
            make.top.mas_equalTo(self.contentView.mas_top).mas_offset(0);
            make.bottom.mas_equalTo(self.contentView.mas_bottom).mas_offset(0);
        }];
    }
    return self;
}

-(void)setModel:(WorksPathModel *)model
{
    _model = model;
    _worksNameView.text = model.worksName;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
